#ifndef	__ELF_H
#define	__ELF_H

#include	<types.h>

typedef struct
{
	ulong_t magic;
	uchar_t bitness;
	uchar_t endian;
	uchar_t elf_ver_1;
	uchar_t res[9];
	ushort_t file_type;
	ushort_t machine;
	ulong_t elf_ver_2;
	ulong_t entry;
	ulong_t phtab_offset;
	ulong_t shtab_offset;
	ulong_t flags;
	ushort_t file_hdr_size;
	ushort_t ph_size;
	ushort_t num_ph;
	ushort_t sh_size;
	ushort_t num_sects;
	ushort_t shstrtab_index;
} elf_file_t __attribute__((packed));

#endif
